<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    use HasFactory;
    public $timestamps = false;
    public $fillable = [
        'type',
        'title',
    ];

    public function article()
    {
        return $this->hasMany(Article::class, 'category_id');
    }
}
